package com.sxt.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.sxt.domain.Goods;
import java.lang.Integer;

@Repository
public interface GoodsDao extends JpaRepository<Goods, Integer>{
 
	/**
	 * 若要分页
	 * @param keyword
	 */
	Page<Goods> findByGoodsNameLike(String keyword,Pageable page);
	
	List<Goods> findByGoodsNameLike(String keyword);
	
}
